<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:rich="http://richfaces.org/rich" template="embed/template.xhtml">

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<ui:define name="topnav">
		<ui:include src="/embed/menu.xhtml">
			<ui:param name="page" value="home" />
		</ui:include>
	</ui:define>
	<ui:define name="sidebar">
		<ui:include src="/login/login.xhtml" />
	</ui:define>

	<ui:define name="search">

		<ui:include src="/embed/search.xhtml" />

	</ui:define>

	<ui:define name="body">
		<div class="productbox">
		<h4>这个产品的详细信息如下:</h4>
		<rich:separator width="60%" align="left" />

		<div class="productimage"><f:subview
			rendered="#{jacksalas.pictureUrl != null}">
			<img id="productBigPic" src="#{jacksalas.pictureUrl}" />
		</f:subview></div>

		<div class="productinfo">
		<ul>
			<li><h:panelGrid columns="2">
				<h:outputText value="一口价:" />
				<h:outputText value="#{jacksalas.price}" />

				<h:outputText value="运费:" />

				<h:outputText value="平邮:10元    " />
				<br />
				<h:outputText value="快递:10元    " />
				<br />
				<h:outputText value="EMS:20元" />
			</h:panelGrid></li>

			<li class="linesize">#{jacksalas.description}<br />
			</li>

			<li class="productbuttons"><s:button action="#{show.addToCart}"
				view="/shoppingcart.xhtml" value="放入购物车" /> &#160;</li>
		</ul>
		</div>

		<div class="productsmallimage">
		    <ui:repeat value="#{jacksalas.productImage}" var="image">
			    <img src="img/#{image.imageURL}" />
		    </ui:repeat>
		</div>


		</div>


			<div class="productcomment">
		
		<rich:separator height="2" lineType="dotted" /><br />
	
		<rich:panel>
			<f:facet name="header">商品评论</f:facet>
			<ui:include src="/embed/message.xhtml" />
		</rich:panel></div>
	</ui:define>
</ui:composition>





